export const routes = [
  { path: '/', redirect: '/appRoot' },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录',
      icon: 'icon-park-outline:ghost',
      withoutTab: true
    }
  },
  {
    path: '/undefined',
    name: '404',
    component: () => import('@/views/error/404/index.vue'),
    meta: {
      title: '404',
      icon: 'icon-park-outline:ghost',
      withoutTab: true
    }
  },
  {
    path: '/403',
    name: '403',
    component: () => import('@/views/error/403/index.vue'),
    meta: {
      title: 'Forbidden',
      icon: 'icon-park-outline:ghost',
      withoutTab: true
    }
  },
  {
    path: '/500',
    name: '500',
    component: () => import('@/views/error/500/index.vue'),
    meta: {
      title: '服务器内部错误',
      icon: 'icon-park-outline:ghost',
      withoutTab: true
    }
  },
  {
    path: '/:pathMatch(.*)*',
    component: () => import('@/views/error/404/index.vue'),
    name: '404',
    meta: {
      title: '找不到页面',
      icon: 'icon-park-outline:ghost',
      withoutTab: true
    }
  }
]
